package com.bwda.dsrs.filecenter.domain.form.uploadsetting;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 上传配置表单
 *
 * @author liangjianyong
 * @date 2019/4/29
 */
@Data
@ApiModel(description = "上传配置表单")
public class UploadSettingForm {

    @ApiModelProperty(value = "单个文件最大上阀值",required = true)
    @NotNull(message = "单个文件最大上阀值不能为空")
    private Integer fileMaxUploadSize;

    @ApiModelProperty(value = "支持上传的类型,以逗号分隔")
    @NotNull(message = "支持上传的类型不能为空")
    private String supportUploadType;

    @ApiModelProperty(value = "备注")
    @Size(max = 140,min = 0,message = "备注长度0-140")
    private String remark;

}
